package com.imc.beans;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CmanagerList entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cmanager_list", catalog = "imcdbserver", uniqueConstraints = @UniqueConstraint(columnNames = {
		"major_id", "minor_id", "manager_id" }))
public class CmanagerList implements java.io.Serializable {

	// Fields

	private CmanagerListId id;

	// Constructors

	/** default constructor */
	public CmanagerList() {
	}

	/** full constructor */
	public CmanagerList(CmanagerListId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "majorId", column = @Column(name = "major_id")),
			@AttributeOverride(name = "minorId", column = @Column(name = "minor_id")),
			@AttributeOverride(name = "managerId", column = @Column(name = "manager_id")) })
	public CmanagerListId getId() {
		return this.id;
	}

	public void setId(CmanagerListId id) {
		this.id = id;
	}

}